<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./jquery.min.js"></script>
</head>

<body>
    <div class="regisBox">
        <h3>注册</h3>
        <input type="text" placeholder="username" id="username">
        <input type="text" placeholder="password" id="password">
        <button id="regisBtn">regisBtn</button>
    </div>
    <div class="loginBox">
        <h3>登录</h3>
        <input type="text" placeholder="username" id="username2" value="zhangsan">
        <input type="text" placeholder="password" id="password2" value="123456">
        <button id="loginBtn">regisBtn</button>
    </div>
    <div class="userInfoBox">
        <h3>用户信息</h3>
        <button id="userInfoBtn">获取当前登录的用户信息</button>
        <p class="userInfo"></p>
    </div>
    <div class="updateUserBox">
        <h3>更新用户信息</h3>
        <input type="text" placeholder="email" id="email">
        <input type="text" placeholder="nickname" id="nickname">
        <button id="updateUserBtn">updateUserBtn</button>
    </div>
    <div class="updatePwdBox">
        <h3>更新密码</h3>
        <input type="text" placeholder="oldPwd" id="oldPwd">
        <input type="text" placeholder="newPwd" id="newPwd">
        <button id="updatePwdBtn">updateUserBtn</button>
    </div>
    <div class="updateavatarBox">
        <h3>更新用户头像</h3>
        <input type="text" placeholder="avatar" id="avatar">
        <button id="updateavatarBtn">updateUserBtn</button>
    </div>
    <div class="getCatesBox">
        <h3>获取分类信息</h3>
        <button id="getCatesBtn">getCateBtn</button>
        <div class="cates"></div>
    </div>
    <div class="addCateBox">
        <h3>添加分类信息</h3>
        <input type="text" placeholder="name" id="addcate_name">
        <input type="text" placeholder="alias" id="addcate_alias">
        <button id="addCateBtn">addCateBtn</button>
    </div>
    <div class="delCateBox">
        <h3>删除分类信息</h3>
        <input type="text" placeholder="id" id="delcate">
        <button id="delCateBtn">delCateBtn</button>
    </div>
    <div class="getCateBox">
        <h3>获取单个分类信息</h3>
        <input type="text" placeholder="id" id="getCate">
        <button id="getCateBtn">getCateBtn</button>
        <div class="cate"></div>
    </div>
    <div class="updateCateBox">
        <h3>更新分类信息</h3>
        <input type="text" placeholder="name" id="updatecate_name">
        <input type="text" placeholder="alias" id="updatecate_alias">
        <input type="text" placeholder="id" id="updatecate_id">
        <button id="updateCateBtn">updateCateBtn</button>
    </div>

    <div class="publishBox">
        <h3>发布新文章</h3>
        <input type="text" placeholder="title" id="title">
        <input type="text" placeholder="cate_id" id="cate_id">
        <input type="text" placeholder="content" id="content">
        <input type="text" placeholder="state" id="state">
        <input type="file" placeholder="cover_img" id='cover_img'>
        <button id="publishBtn">publishBtn</button>
    </div>

    <div class="getArticleBox">
        <h3>获取文章列表</h3>
        <input type="text" placeholder="state" id="state1">
        <input type="text" placeholder="cate_id" id="cate_id1">
        <button id="getArticleBtn">getArticleBox</button>
    </div>

    <div class="getArticleIDBox">
        <h3>获取文章根据id</h3>
        <input type="text" placeholder="id" id="id1">
        <button id="getArticleIDBtn">getArticleIDBox</button>
        <img src="" alt="" id="img">
    </div>

    <div class="delArticleIDBox">
        <h3>删除文章根据id</h3>
        <input type="text" placeholder="id" id="id2">
        <button id="delArticleIDBtn">delArticleIDBtn</button>
    </div>

    <div class="editBox">
        <h3>更新文章</h3>
        <input type="text" placeholder="id" id="editid">
        <input type="text" placeholder="title" id="edittitle">
        <input type="text" placeholder="cate_id" id="editcate_id">
        <input type="text" placeholder="content" id="editcontent">
        <input type="text" placeholder="state" id="editstate">
        <input type="file" placeholder="cover_img" id='editcover_img'>
        <button id="editBtn">editBtn</button>
    </div>
    <script src="./index.js"></script>
</body>

</html>